<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        let json = {
        	a:12,b:15
        };

        let str = 'http://baidu.com/data='+encodeURIComponent(JSON.stringify(json));
        let m = 12;
        let n = 24;
        let mn = {m,n};//直接简写
        alert(str)
    </script>
</head>
<body>
<select name="" id="">
    <option value="34">123</option>
    <option value="34">123we</option>
</select>
</body>
<script>

</script>
</html>